﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace WebFirst.Entities
{
    /// <summary>
    /// 
    ///</summary>
    [SugarTable("Book")]
    public class Book
    {
        /// <summary>
        ///  
        ///</summary>
        [SugarColumn(ColumnName = "bookId", IsPrimaryKey = true, IsIdentity = true)]
        public int BookId { get; set; }
        /// <summary>
        ///  
        ///</summary>
        [SugarColumn(ColumnName = "bookName")]
        public string BookName { get; set; }
        /// <summary>
        ///  
        ///</summary>
        [SugarColumn(ColumnName = "author")]
        public string Author { get; set; }
        /// <summary>
        ///  
        ///</summary>
        [SugarColumn(ColumnName = "press")]
        public string Press { get; set; }
        /// <summary>
        ///  
        ///</summary>
        [SugarColumn(ColumnName = "stock")]
        public int Stock { get; set; }
    }
}
